from django.urls import path,re_path
from rest_framework_jwt.views import obtain_jwt_token
from . import views
urlpatterns = [
    path("category/", views.CourseCategoryListAPIView.as_view()),
    path("", views.CourseListAPIView.as_view()),
    re_path("^(?P<pk>\d+)/$", views.CourseRetrieveAPIView.as_view()),
    path("chapter/", views.ChapterListAPIView.as_view()),
    re_path("^polvy/(?P<course_id>\d+)/(?P<lesson_id>\d+)/$", views.PolyvAPIView.as_view()),
]